#include "Rp2StencilState.h"

using namespace Rp2;

RP2_IMPLEMENT_INITIALIZE(StencilState);
RP2_IMPLEMENT_TERMINATE(StencilState);

//---------------------------------------------------------------------------------------------------
StencilState::StencilState()
{
    Enabled = false;
    Compare = CF_NEVER;
    Reference = 0;
    Mask = (unsigned int)~0;
    WriteMask = (unsigned int)~0;
    OnFail = OT_KEEP;
    OnZFail = OT_KEEP;
    OnZPass = OT_KEEP;
}
//---------------------------------------------------------------------------------------------------
StencilState::~StencilState()
{
}
//---------------------------------------------------------------------------------------------------
void StencilState::Initialize()
{
	DefaultStates[STENCIL] = new StencilState;
}
//---------------------------------------------------------------------------------------------------
void StencilState::Terminate()
{
	DefaultStates[STENCIL] = 0;
}
//---------------------------------------------------------------------------------------------------